package com.so206.po;

import java.io.Serializable;
import java.util.Date;

public class PutForwardConfig implements Serializable {
    private Long id;

    /**
    * 操作人
    */
    private Long optUser;

    /**
    * 时间
    */
    private Date optTime;

    /**
    * 支付宝收款人姓名
    */
    private String alipayName;

    /**
    * 支付宝账号
    */
    private String alipayId;

    /**
    * 微信真实姓名
    */
    private String wxName;

    /**
    * 微信openid
    */
    private String wxOpenId;

    /**
    * 提款留言
    */
    private String title;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOptUser() {
        return optUser;
    }

    public void setOptUser(Long optUser) {
        this.optUser = optUser;
    }

    public Date getOptTime() {
        return optTime;
    }

    public void setOptTime(Date optTime) {
        this.optTime = optTime;
    }

    public String getAlipayName() {
        return alipayName;
    }

    public void setAlipayName(String alipayName) {
        this.alipayName = alipayName;
    }

    public String getAlipayId() {
        return alipayId;
    }

    public void setAlipayId(String alipayId) {
        this.alipayId = alipayId;
    }

    public String getWxName() {
        return wxName;
    }

    public void setWxName(String wxName) {
        this.wxName = wxName;
    }

    public String getWxOpenId() {
        return wxOpenId;
    }

    public void setWxOpenId(String wxOpenId) {
        this.wxOpenId = wxOpenId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", optUser=").append(optUser);
        sb.append(", optTime=").append(optTime);
        sb.append(", alipayName=").append(alipayName);
        sb.append(", alipayId=").append(alipayId);
        sb.append(", wxName=").append(wxName);
        sb.append(", wxOpenId=").append(wxOpenId);
        sb.append(", title=").append(title);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PutForwardConfig other = (PutForwardConfig) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOptUser() == null ? other.getOptUser() == null : this.getOptUser().equals(other.getOptUser()))
            && (this.getOptTime() == null ? other.getOptTime() == null : this.getOptTime().equals(other.getOptTime()))
            && (this.getAlipayName() == null ? other.getAlipayName() == null : this.getAlipayName().equals(other.getAlipayName()))
            && (this.getAlipayId() == null ? other.getAlipayId() == null : this.getAlipayId().equals(other.getAlipayId()))
            && (this.getWxName() == null ? other.getWxName() == null : this.getWxName().equals(other.getWxName()))
            && (this.getWxOpenId() == null ? other.getWxOpenId() == null : this.getWxOpenId().equals(other.getWxOpenId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOptUser() == null) ? 0 : getOptUser().hashCode());
        result = prime * result + ((getOptTime() == null) ? 0 : getOptTime().hashCode());
        result = prime * result + ((getAlipayName() == null) ? 0 : getAlipayName().hashCode());
        result = prime * result + ((getAlipayId() == null) ? 0 : getAlipayId().hashCode());
        result = prime * result + ((getWxName() == null) ? 0 : getWxName().hashCode());
        result = prime * result + ((getWxOpenId() == null) ? 0 : getWxOpenId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        return result;
    }
}